<template>
<div class="layerRtb layerRtb-threecolumn layerRtb-right">
    <three-title :title="{name:'基础资料'}" :close="false">
        <span tag="i" class="rig_close fr" @click="$parent.$parent.clickFourShow()"></span>
    </three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "137">
        <div class="analyItem">
            <p class="analyItemTit tx-center">基础</p>
            <div class="analyItemCon">
                 <p class="col-md-4">
                    <span class="cLightGray pr8">姓名</span>
                    <span>{{appUserInfo.u_name}}</span>
                </p>
                 <p class="col-md-4">
                    <span class="cLightGray pr8">电话</span>
                    <span>{{appUserInfo.phone}}</span>
                </p>
                 <p class="col-md-4">
                    <span class="cLightGray pr8">微信</span>
                    <span>{{appUserInfo.weixin}}</span>
                </p>
                 <p class="col-md-4">
                    <span class="cLightGray pr8">性别</span>
                    <span>{{appUserInfo.sex}}</span>
                </p>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">地区</p>
            <div class="analyItemCon">
                 <p class="col-md-4">
                    <span class="cLightGray pr8">地区</span>
                    <span>{{appUserInfo.u_shi}}</span>
                </p>
                 <p class="col-md-4">
                    <span class="cLightGray pr8">分司</span>
                    <span>{{appUserInfo.region_name}}</span>
                </p>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">实力</p>
            <div class="analyItemCon">
                 <p class="col-md-4">
                    <span class="cLightGray pr8">行业经验</span>
                    <span>{{appUserInfo.u_jyshijian}}</span>
                </p>
                                 <p class="col-md-4">
                    <span class="cLightGray pr8"></span>
                    <span>固定工人</span>
                </p>
            </div>
        </div>
                <div class="analyItem">
            <p class="analyItemTit tx-center">时间</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">录入</span>
                    <span>{{appUserInfo.create_date}}</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">注册</span>
                    <span>{{appUserInfo.create_date}}</span>
                </p>
            </div>
        </div>
             <div class="analyItem">
            <p class="analyItemTit tx-center">年龄</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">年龄</span>
                    <span>{{appUserInfo.age}}</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">婚否</span>
                    <span>{{appUserInfo.is_marry===0?"已婚" : "未婚"}}</span>
                </p>
            </div>
        </div>
             <div class="analyItem">
            <p class="analyItemTit tx-center">学历</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">学历</span>
                    <span>{{userDetailInfo.education}}</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">证件</span>
                    <span>{{userDetailInfo.certificates}}</span>
                </p>
            </div>
        </div>
            <div class="analyItem">
            <p class="analyItemTit tx-center">家庭关系</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">姓名</span>
                    <span>{{userDetailInfo.family_name}}</span>
                </p>
                     <p class="col-md-4">
                    <span class="cLightGray pr8">关系</span>
                    <span>{{userDetailInfo.family_relation}}</span>
                </p>
                     <p class="col-md-4">
                    <span class="cLightGray pr8">电话</span>
                    <span>{{userDetailInfo.family_phone}}</span>
                </p>
                     <p class="col-md-4">
                    <span class="cLightGray pr8">微信</span>
                    <span>{{userDetailInfo.family_wechat}}</span>
                </p>
                     <p class="col-md-4">
                    <span class="cLightGray pr8">性别</span>
                    <span>{{userDetailInfo.family_sex== 0 ? "女" : "男"}}</span>
                </p>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">身份证</p>
            <div class="analyItemCon">
                <div class="col-md-12 mb10">
                    <span class="cLightGray pr8">身份证号</span>
                    <span>{{userDetailInfo.idcard}}</span>
                </div>
                <div class="col-md-12">

                    <p class="col-md-4">
                     <rx-viewer :options="{}"  >
                            <div class="fl mb10 mr20">
                                <div class="look_imgHover relative" :style="elstyle" >
                                    <img :src="this.userInfoPhoto['4']">
                                    <div class="upload_finish_div">
                                        <div class="upload_finish_bg"></div>
                                        <div class="upload_finish_link">
                                            <div class="dis-il-block">
                                                <a href="javascript:" class="ImgBtn enlarge_link enlarge_viewer"></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="imgInfo tx-center">身份证正面</div>
                                </div>
                            </div>
                        </rx-viewer>
                    </p>
                    <p class="col-md-4">
                     <rx-viewer :options="{}"  >
                            <div class="fl mb10 mr20">
                                <div class="look_imgHover relative" :style="elstyle" >
                                    <img :src="this.userInfoPhoto['8']">
                                    <div class="upload_finish_div">
                                        <div class="upload_finish_bg"></div>
                                        <div class="upload_finish_link">
                                            <div class="dis-il-block">
                                                <a href="javascript:" class="ImgBtn enlarge_link enlarge_viewer"></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="imgInfo tx-center">身份证反面</div>
                                </div>
                            </div>
                    </rx-viewer>
                    </p>
                </div>
                <!-- <p class="col-md-2">

                </p> -->
                    <!-- <p class="col-md-2">

                    </p> -->
                <!-- <img :src="this.userInfoPhoto['4']">
                <img :src="this.userInfoPhoto['8']"> -->

            </div>
        </div>
                    <div class="analyItem">
            <p class="analyItemTit tx-center">地址</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">地址</span>
                    <span>{{appUserInfo.age}}</span>
                </p>
                                <p class="col-md-4">
                    <span class="cLightGray pr8">实地考察</span>
                    <span>{{appUserInfo.age}}</span>
                </p>
            </div>
        </div>
                    <div class="analyItem">
            <p class="analyItemTit tx-center">照片</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                     <rx-viewer :options="{}"  >
                            <div class="fl mb10 mr20">
                                <div class="look_imgHover relative" :style="elstyle" >
                                    <img :src="this.userInfoPhoto['36']">
                                    <div class="upload_finish_div">
                                        <div class="upload_finish_bg"></div>
                                        <div class="upload_finish_link">
                                            <div class="dis-il-block">
                                                <a href="javascript:" class="ImgBtn enlarge_link enlarge_viewer"></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="imgInfo tx-center">形象照</div>
                                </div>
                            </div>
                    </rx-viewer>
                </p>
                    <p class="col-md-4">
                      <rx-viewer :options="{}"  >
                            <div class="fl mb10 mr20">
                                <div class="look_imgHover relative" :style="elstyle" >
                                    <img :src="this.userInfoPhoto['41']">
                                    <div class="upload_finish_div">
                                        <div class="upload_finish_bg"></div>
                                        <div class="upload_finish_link">
                                            <div class="dis-il-block">
                                                <a href="javascript:" class="ImgBtn enlarge_link enlarge_viewer"></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="imgInfo tx-center" >艺术照</div>
                                </div>
                            </div>
                    </rx-viewer>
                    </p>
                <!-- 一寸照<img :src="this.userInfoPhoto['36']"> -->
                <!-- 艺术照<img :src="this.userInfoPhoto['41']"> -->

            </div>
        </div>
                    <div class="analyItem">
            <p class="analyItemTit tx-center">银行</p>
            <div class="analyItemCon">
                <p class="col-md-3">
                    <span class="cLightGray pr8">姓名</span>
                    <span>{{appUserInfo.bank_user_name}}</span>
                </p>
                <p class="col-md-3">
                    <span class="cLightGray pr8">开户行</span>
                    <span>{{appUserInfo.bank_name}}</span>
                </p>
                <p class="col-md-6">
                    <span class="cLightGray pr8">账号</span>
                    <span>{{appUserInfo.bank_card}}</span>
                </p>

                 <p class="col-md-4">
                     <rx-viewer :options="{}"  >
                            <div class="fl mb10 mr20">
                                <div class="look_imgHover relative" :style="elstyle" >
                                    <img :src="this.userInfoPhoto['9']">
                                    <div class="upload_finish_div">
                                        <div class="upload_finish_bg"></div>
                                        <div class="upload_finish_link">
                                            <div class="dis-il-block">
                                                <a href="javascript:" class="ImgBtn enlarge_link enlarge_viewer"></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="imgInfo tx-center" >银行卡正面</div>
                                </div>
                            </div>
                    </rx-viewer>
                       <!-- <img :src="this.userInfoPhoto['9']"> -->
                </p>
                 <p class="col-md-4">
                     <rx-viewer :options="{}"  >
                            <div class="fl mb10 mr20">
                                <div class="look_imgHover relative" :style="elstyle" >
                                    <img :src="this.userInfoPhoto['11']">
                                    <div class="upload_finish_div">
                                        <div class="upload_finish_bg"></div>
                                        <div class="upload_finish_link">
                                            <div class="dis-il-block">
                                                <a href="javascript:" class="ImgBtn enlarge_link enlarge_viewer"></a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="imgInfo tx-center" >银行卡反面</div>
                                </div>
                            </div>
                    </rx-viewer>
                        <!-- <img :src="this.userInfoPhoto['11']"> -->
                </p>
            </div>
        </div>
    </div>
    <div class="layerRtb-footer">
        <div class="analyItem">
            <p class="analyItemTit tx-center">综合</p>
            <div class="analyItemCon">
                <!-- <p class="fl col-md-9"></p>
                <p class="fr col-md-3">
                    <span class="cLightGray">统计</span>
                    <span class="cGreen fz14 bold">0分</span>
                </p>
                <p class="fl"><span class="circlemark circlemark-green">优</span></p> -->
            </div>
        </div>
        <!-- <div class="tx-center">
            <input type="button" class="uiBtn-normal uiBtn-blue" value="确定">
        </div> -->
    </div>
</div>
</template>
<script>
import { findStageInfoById, GetAppUserInfo, getUserListinfoPhoto } from '../../../Resources/Api'
import {
    mapGetters
} from 'vuex'
export default {
    data () {
        return {
            userDetailInfo: [],
            appUserInfo: {},
            userInfoPhoto: {},
            IDCardFace: '', // 身份证正面  4
            IDCardIdentity: '', // 身份证反面  8
            bankCardFace: '', // 银行卡正面   9
            bankCardIdentity: '', // 银行卡反面    11
            visualize: '', // 形象    41
            art: '', // 艺术           36
            elstyle: {
                width: '80px',
                height: '100px'
            }
        }
    },
    created () {
        this.StageInfoById()
        this.AppUserInfo()
        this.UerInfoPhoto()
    },
    computed: {
        ...mapGetters(['leftInfo'])
    },
    methods: {
        StageInfoById () {
            let _this = this
            _this.userDetailInfo = []
            findStageInfoById({
                uid: this.leftInfo.uid
            }).then(result => {
                if (result.data.StatusCode === 0) {
                    this.userDetailInfo = result.data.Body
                }
            }).catch(err => {
                console.log(err)
            })
        },
        AppUserInfo () {
            let _this = this
            _this.appUserInfo = {}
            GetAppUserInfo({
                appid: this.leftInfo.rs_app_id,
                post: 4
            }).then(result => {
                this.appUserInfo = result.data.Body[0]
            })
        },
        UerInfoPhoto () {
            let _this = this
            _this.userInfoPhoto = {}
            getUserListinfoPhoto({
                uid: this.leftInfo.uid
            }).then(result => {
                if (result.data.StatusCode === 0) {
                    this.userInfoPhoto = result.data.Body
                }
            }).catch(err => {
                console.log(err)
            })
        }

    },
    watch: {
        leftInfo () {
            this.StageInfoById()
            this.AppUserInfo()
            this.UerInfoPhoto()
        }
    }
}
</script>

